package com.grm.sys.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRolePermMapper {
    void batchInsert(@Param("roleId")Long roleId, @Param("permIds")List<Long> permIds);

    List<Long> queryPermIdsByRoleId(@Param("roleId")Long roleId);

    void deleteByRoleIds(@Param("roleIds")List<Long> roleIds);

    void deleteByPermIds(@Param("permIds")List<Long> permIds);

    void deleteByRoleIdAndPermIds(@Param("roleId") Long roleId, @Param("permIds") List<Long> permIds);
}
